class CreateSpecialOffers < ActiveRecord::Migration
  def self.up
    create_table :special_offers do |t|
      t.string :content
      t.integer :is_locked     ,:limit => 1 ,:default => 0 #是否管理会要锁定 1为True 0为False
      t.timestamps
    end
    SpecialOffer.create(:content => '')
  end

  def self.down
    drop_table :special_offers
  end
end
